<template>
  <div>
    <h1 v-for="(item,index) in list" :key="item.id">
      dd
      <h2>{{index}}}</h2>
      <h2>{{item.id}}}</h2>
      <h2>{{item.name}}}</h2>
      <h2>{{item.sex}}}</h2>
    </h1>
  </div>
</template>

<script>
export default {

  data () {
    return {
      list:[
        {id:1,name:"xiaotan", sex:"男"},
        {id:2,name:"yao", sex:"男"},
        {id:3,name:"yy", sex:"男"},
        {id:4,name:"dd", sex:"女"},
    ]
    }
  }
}
</script>

<style>

</style>